package com.demonzym.http.api;




public class Api {
	public static final int BAIDU = 0;
	public static final int DOWNLOAD = 1;

	public static final int GETPLAYLIST = 2;
	public static final int GETALBUM = 3;
	public static final int GETITEM = 4;
	public static final int GETVIDEOURL = 5;
	
	public int doGetBaidu(){
		return new GetBaiduTask().execute();
	}
	
	public int doGetPlaylistInfo(String listcode, String count){
		return new GetPlaylistInfoTask(listcode, count).execute();
	}

	public int doGetItemInfo(String codes){
		return new GetItemInfoTask(codes).execute();
	}

	public int doGetAlbumInfo(String ids){
		return new GetAlbumInfoTask(ids).execute();
	}

	public int doGetVideoUrl(String id){
		return new GetVideoUrlTask(id).execute();
	}
	
	
	private static Api mInstance;
	public static Api getInstance(){
		if(mInstance == null){
			mInstance = new Api();
		}
		return mInstance;
	}
}
